package com.hb.core.pojo.project.opening.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hb.core.pojo.project.opening.entity.OpeningBidInfo;
import com.hb.core.pojo.project.section.dto.BidSectionDTO;
import com.hb.core.pojo.project.section.entity.BidSection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 开标标段记录表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-11-15
 */
public interface OpeningBidInfoMapper extends BaseMapper<OpeningBidInfo> {

    /**
     * 根据项目Id查询今日开标标段分页
     *
     * @param page
     * @param projectId
     * @return
     */
    Page<BidSectionDTO> pageTodayBidOpeningSection(@Param("page") Page page, @Param("projectId") Long projectId, @Param("createId") Long createId, @Param("roleSign") Integer roleSign, @Param("orgId") Long orgId);
     /**
      *
      * @Description:根据项目Id查询今日开标标段分页(不带分页)
      * @Author: zhongdl
      * @Date:2022/3/9 13:05
      * @param projectId:
      * @param createId:
      * @param roleSign:
      * @param orgId:
      * @return: {@link List< BidSectionDTO> }
      **/
    List<BidSectionDTO> listTodayBidOpeningSection(@Param("projectId") Long projectId, @Param("createId") Long createId, @Param("roleSign") Integer roleSign, @Param("orgId") Long orgId);

    /**
     * 投标人根据企业Id和日期查询开标标段分页
     *
     * @param page
     * @param bidSectionDTO
     * @return
     */
    Page<BidSectionDTO> pageTodayOpeningSection(@Param("page") Page page, @Param("query") BidSectionDTO bidSectionDTO);
    /**
     * 招标人根据企业Id和日期查询开标标段分页
     *
     * @param page
     * @param bidSectionDTO
     * @return
     */
    Page<BidSectionDTO> pageTodayOpeningSectionTender(@Param("page") Page page, @Param("query") BidSectionDTO bidSectionDTO);
}
